package net.wwang.blog.controller.portal;

import net.wwang.blog.commons.global.ResponseResult;
import org.springframework.web.bind.annotation.*;

/**
 * @author WangWei
 * @date 2020/8/14
 */
@RestController
@RequestMapping("/portal/article")
public class ArticlePortalApi {
    @GetMapping(value = "/list/{page}/{size}")
    public ResponseResult getArticleList(@PathVariable("page")int page, @PathVariable("size")int size){
        return null;
    }

    @GetMapping(value = "/list/{categoryId}/{page}/{size}")
    public ResponseResult getArticlesByCategory(@PathVariable("categoryId")int categoryId,@PathVariable("page")int page, @PathVariable("size")int size){
        return null;
    }

    @GetMapping(value = "/{articleId}")
    public ResponseResult getArticleDetail(@PathVariable("articleId")String articleId){
        return  null;
    }

    @GetMapping("/recommend/{articleId}")
    public  ResponseResult getRecommendArticle(@PathVariable("articleId")String articleId){
        return null;
    }
}
